#include "comm.hpp"
int main()
{
    int shmid = GetShm();
    DEBUG("Get shm done");
    char* str = (char*)shmat(shmid, nullptr, 0);
    DEBUG("attach shm done, shmaddr: 0x%x", str);

 
    int cnt = 0;
    while (cnt <= 26)
    {
        str[cnt] = 'A' + cnt;
        ++cnt;
        str[cnt] = '\0';
        sleep(1);
    }

    shmdt(str);
    DEBUG("detach shm done, shaddr: 0x%x", str);

    return 0;
}